import { _decorator, Component, UIOpacity, tween, Tween, Vec3 } from 'cc';

const { ccclass, property } = _decorator;

@ccclass('AutoDisable')
export class AutoDisable extends Component {
    @property
    dt: number = 1;

    protected start(): void {
        this.scheduleOnce(() => {
            if (this.node) {
                this.node.destroy();
            }
        }, this.dt);
    }
}